package com.seckill.page.feign;

import com.seckill.goods.pojo.Sku;
import com.seckill.util.Result;
import org.springframework.web.bind.annotation.*;

/**
 * @program: seckill-parent
 * @description: 调用sku的页面的feign接口
 * @author: zhanghz001
 * @create: 2021-06-25 10:38
 **/
// @FeignClient(value = "seckill-page")
public interface ZhzSkuPageFeign {
    /**
     * 静态商品页面删除
     *
     * @param id 商品id
     * @return
     */
    @DeleteMapping("/page/html/{id}")
    Result delete(@PathVariable(value = "id") String id);
    
    /**
     * 静态页面生成
     *
     * @param sku
     * @return
     */
    @PostMapping("/page/html")
    Result writePage(@RequestBody Sku sku);
    
    /**
     * 静态页面生成
     *
     * @param id
     * @return
     * @throws Exception
     */
    
    @GetMapping("/page/html/{id}")
    Result html(@PathVariable(value = "id") String id) throws Exception;
}
